package com.ilink.ilinkapi.dto.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

@Data
public class UserDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String userId;

    private String username;

    private String password;

    private String schoolName;

    private String schoolId;

    private String nickname;

    private String email;

    private Timestamp createdAt;
    private String userIntroduction;
    private String userImage;
    private String userCollege;
    private String realname;
    private String sex;
    //    private String userStudentNumber;
    private String userGrade;
    private String userMajor;
    private String userMobile;
    private String userCover;
    private String userType;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastLoginAt;

}
